package com.antdesignbackend.backend.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 屠宰记录
 */
@Data
@TableName("t_slaughterrecord")
public class SlaughterRecord {
    /**
     * 屠宰记录主键ID
     */
    @TableId(value = "SlaughterId",type = IdType.AUTO)
    private Integer slaughterId;
    /**
     * 进厂记录编号
     */
    @TableField("EntryRecordId")
    private Integer entryRecordId;
    /**
     * 已屠宰耳标号
     */
    @TableField("SlaughterEarMark")
    private String slaughterEarMark;
    /**
     * 屠宰日期
     */
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(pattern="yyyy-MM-dd")
    @TableField("SlaughterDate")
    private Date slaughterDate;
    /**
     * 屠宰数量
     */
    @TableField("SlaughterNumber")
    private Integer slaughterNumber;
    /**
     * 状态 0未出厂，1已出厂
     */
    @TableField("OutState")
    private Integer outState;
    /**
     * 企业id
     */
    @TableField("Eid")
    private Integer eid;
    /**
     * 屠宰种类
     */
    @TableField("Type")
    private String type;
}
